package com.xgimi.open.skill.datamanager.web.controller;

import com.xgimi.open.skill.datamanager.biz.service.SpeechRuleBizService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author coderzpw.zhang
 * @version 1.0
 * @description 描述
 * @date 2023/2/7 19:31
 */
@Slf4j
@RequestMapping("/speechRule")
@RestController
public class SpeechRuleController {

    @Autowired
    private SpeechRuleBizService speechRuleBizService;

//    @AutoLog
//    @ApiOperation(value = "新增说法规则")
//    @PostMapping("/create")
//    public Boolean publishSpeechRule(@RequestBody @Validated SpeechRuleVO speechRuleVO) {
//        Boolean ret = speechRuleBizService.addSpeechRule(speechRuleVO);
//        return ret;
//    }


//    @AutoLog
//    @ApiOperation(value = "批量新增说法规则")
//    @PostMapping("/batchCreate")
//    public BatchSpeechRuleDTO batchCreate(@RequestBody @Validated BatchSpeechRuleVO batchSpeechRuleVO) {
//        BatchSpeechRuleDTO ret = speechRuleBizService.batchCreate(batchSpeechRuleVO);
//        return ret;
//    }
//
//    @AutoLog
//    @ApiOperation(value = "分页查询说法规则")
//    @PostMapping(value = "/pageQuery")
//    public PageResult<SpeechRuleDTO> pageQuery(@RequestBody SpeechRuleVO speechRuleVO) {
//        PageResult<SpeechRuleDTO> pageQuery = speechRuleBizService.pageQuery(speechRuleVO);
//        return pageQuery;
//    }
//
//    @AutoLog
//    @ApiOperation(value = "删除说法规则")
//    @PostMapping(value = "/delete")
//    public Boolean delete(@RequestBody SpeechRuleVO speechRuleVO) {
//        Boolean ret = speechRuleBizService.deleteSpeechRule(speechRuleVO);
//        return ret;
//    }
//
//    @AutoLog
//    @ApiOperation(value = "修改说法规则")
//    @PostMapping(value = "/update")
//    public Boolean update(@RequestBody SpeechRuleVO speechRuleVO) {
//        Boolean ret = speechRuleBizService.updateSpeechRule(speechRuleVO);
//        return ret;
//    }
}
